package com.jz.netthings.application.providerCollection.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 采浆记录-周期性数据
 * </p>
 *
 * @author zyl
 * @since 2019-03-25
 */
public class Periodic implements Serializable {

    private static final long serialVersionUID = 1L;

    private String mlogid;
    /**
     * 序号
     */
    private Integer no;
    /**
     * 事件采/还+层数
     */
    private String events;
    /**
     * 时间秒
     */
    private Date time;
    /**
     * 血泵速度
     */
    private Integer xbSpeed;
    /**
     * 抗凝剂泵速度
     */
    private Float knjSpeed;
    /**
     * 血泵圈数
     */
    private Float xbRotated;
    /**
     * 抗凝剂泵圈数
     */
    private Float knjRotated;
    /**
     * 管压值
     */
    private Float gyValue;
    /**
     * 袖带压力
     */
    private Integer xyValue;
    /**
     * 离心机转速
     */
    private Integer lxjSpeed;
    /**
     * 血浆电子称重量
     */
    private Integer xjdzcWeight;
    /**
     * 抗凝剂电子称重量
     */
    private Float knjdzcWeight;
    /**
     * 红探值
     */
    private Integer htValue;
    /**
     * 抗凝剂全血比
     */
    private Float knjb;
    /**
     * 当层血泵采集圈数
     */
    private Float curXbDrawRotated;
    /**
     * 当层血泵还输圈数
     */
    private Float curXbReturnRotated;


    public String getMlogid() {
        return mlogid;
    }

    public void setMlogid(String mlogid) {
        this.mlogid = mlogid;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public String getEvents() {
        return events;
    }

    public void setEvents(String events) {
        this.events = events;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getTime() {
        return time;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getXbSpeed() {
        return xbSpeed;
    }

    public void setXbSpeed(Integer xbSpeed) {
        this.xbSpeed = xbSpeed;
    }

    public Float getKnjSpeed() {
        return knjSpeed;
    }

    public void setKnjSpeed(Float knjSpeed) {
        this.knjSpeed = knjSpeed;
    }

    public Float getXbRotated() {
        return xbRotated;
    }

    public void setXbRotated(Float xbRotated) {
        this.xbRotated = xbRotated;
    }

    public Float getKnjRotated() {
        return knjRotated;
    }

    public void setKnjRotated(Float knjRotated) {
        this.knjRotated = knjRotated;
    }

    public Float getGyValue() {
        return gyValue;
    }

    public void setGyValue(Float gyValue) {
        this.gyValue = gyValue;
    }

    public Integer getXyValue() {
        return xyValue;
    }

    public void setXyValue(Integer xyValue) {
        this.xyValue = xyValue;
    }

    public Integer getLxjSpeed() {
        return lxjSpeed;
    }

    public void setLxjSpeed(Integer lxjSpeed) {
        this.lxjSpeed = lxjSpeed;
    }

    public Integer getXjdzcWeight() {
        return xjdzcWeight;
    }

    public void setXjdzcWeight(Integer xjdzcWeight) {
        this.xjdzcWeight = xjdzcWeight;
    }

    public Float getKnjdzcWeight() {
        return knjdzcWeight;
    }

    public void setKnjdzcWeight(Float knjdzcWeight) {
        this.knjdzcWeight = knjdzcWeight;
    }

    public Integer getHtValue() {
        return htValue;
    }

    public void setHtValue(Integer htValue) {
        this.htValue = htValue;
    }

    public Float getKnjb() {
        return knjb;
    }

    public void setKnjb(Float knjb) {
        this.knjb = knjb;
    }

    public Float getCurXbDrawRotated() {
        return curXbDrawRotated;
    }

    public void setCurXbDrawRotated(Float curXbDrawRotated) {
        this.curXbDrawRotated = curXbDrawRotated;
    }

    public Float getCurXbReturnRotated() {
        return curXbReturnRotated;
    }

    public void setCurXbReturnRotated(Float curXbReturnRotated) {
        this.curXbReturnRotated = curXbReturnRotated;
    }

    @Override
    public String toString() {
        return "Periodic{" +
        "mlogid=" + mlogid +
        ", no=" + no +
        ", events=" + events +
        ", time=" + time +
        ", xbSpeed=" + xbSpeed +
        ", knjSpeed=" + knjSpeed +
        ", xbRotated=" + xbRotated +
        ", knjRotated=" + knjRotated +
        ", gyValue=" + gyValue +
        ", xyValue=" + xyValue +
        ", lxjSpeed=" + lxjSpeed +
        ", xjdzcWeight=" + xjdzcWeight +
        ", knjdzcWeight=" + knjdzcWeight +
        ", htValue=" + htValue +
        ", knjb=" + knjb +
        ", curXbDrawRotated=" + curXbDrawRotated +
        ", curXbReturnRotated=" + curXbReturnRotated +
        "}";
    }
}
